package com.anyou.mall.order.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@NoArgsConstructor
@ApiModel("分配司机参数")
public class DeliveryParam {

    @NotNull
    @ApiModelProperty(value = "订单id数组", required = true)
    private List<Long> orderIds;


    @ApiModelProperty(value = "司机id")
    private Long driverId;

    @ApiModelProperty(value = "是否加急 1:是 0:否(分配司机时必传)")
    private Integer isUrgentDelivery;
    @ApiModelProperty(value = "分派类型 1:分配司机 2:改派司机",required = true)
    @NotNull
    private Integer type;

    @ApiModelProperty(value = "分配方式 1:随机 2:指定司机（分配司机时必传）")
    private Integer mothed;

}
